package com.csaba.connector.model;

import java.io.Serializable;
import java.net.URL;
import java.util.Currency;

public class Bank implements Serializable
{
	private static final long serialVersionUID = 7217421033400191129L;

	private String id;
	private String name;
	private Country country;
	private URL smallIcon;
	private URL largeIcon;
	private Currency baseCurrency;

	public String internetBankURL;
	public String mobileBankURL;
	public String callCenterURL;

	public URL getSmallIcon()
	{
		return smallIcon;
	}

	public URL getLargeIcon()
	{
		return largeIcon;
	}

	public String getId()
	{
		return id;
	}

	public void setId( final String id )
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName( final String name )
	{
		this.name = name;
	}

	public Country getCountry()
	{
		return country;
	}

	public void setCountry( final Country country )
	{
		this.country = country;
	}

	@Override
	public boolean equals( final Object other )
	{
		return other instanceof Bank && ( (Bank) other ).id.equals(this.id);
	}

	@Override
	public String toString()
	{
		return name + "[" + id + "]"; //$NON-NLS-1$ //$NON-NLS-2$
	}

	public void setSmallIcon( final URL smallIcon )
	{
		this.smallIcon = smallIcon;
	}

	public void setLargeIcon( final URL largeIcon )
	{
		this.largeIcon = largeIcon;
	}

	public Currency getBaseCurrency()
	{
		return baseCurrency;
	}

	public void setBaseCurrency( final Currency baseCurrency )
	{
		this.baseCurrency = baseCurrency;
	}

	public String getInternetBankURL()
	{
		return internetBankURL;
	}

	public void setInternetBankURL( final String internetBankURL )
	{
		this.internetBankURL = internetBankURL;
	}

	public String getMobileBankURL()
	{
		return mobileBankURL;
	}

	public void setMobileBankURL( final String mobileBankURL )
	{
		this.mobileBankURL = mobileBankURL;
	}

	public String getCallCenterURL()
	{
		return callCenterURL;
	}

	public void setCallCenterURL( final String callCenterURL )
	{
		this.callCenterURL = callCenterURL;
	}
}
